package com.sgzn.sgpay.model.request;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 门店更新服务请求类
 * @author huangsenguang
 * @version Id: SgsShopAddAndUpdateRequest.java, v 0.1 2018/4/25 20:31 huangsenguang Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsShopUpdateRequest extends SgsMerchantBaseRequest {

    /**
     * 门店ID
     */
    @NotBlank(message = "shopId不允许为空")
    private String shopId;

    /**
     * 门店名称
     */
    private String shopName;

    /**
     * 门店地址
     */
    private String address;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String county;

    /**
     * 是否默认投放地址
     */
    @NotBlank(message = "isDefaultAddress不能为空")
    @Pattern(regexp = "1|0",message ="是否默认投放地址格式错误")
    private String isDefaultAddress;
}

